package cqrtplm.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "RT_CERT_EUEMISSIONSNO", schema = "SYSTEM")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "欧排号实体类")
public class RtCertEuemissionsnoDO {

    @Id
    @Column(name = "ID", length = 100, nullable = false)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @Column(name = "EUEMISSIONSNO", length = 400, nullable = false)
    @ApiModelProperty(value = "欧排号", required = true)
    private String euEmissionsNo;

    @Column(name = "CERTNO", length = 100)
    @ApiModelProperty(value = "证书号")
    private String certNo;

    @Column(name = "CREATEUSERID", length = 100)
    @ApiModelProperty(value = "创建人ID")
    private String createUserId;

    @Column(name = "CREATEUSERNAME", length = 100)
    @ApiModelProperty(value = "创建人")
    private String createUserName;

    @Column(name = "CREATETIME")
    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;

    @Column(name = "UPDATEUSERID", length = 100)
    @ApiModelProperty(value = "更新人ID")
    private String updateUserId;

    @Column(name = "UPDATEUSERNAME", length = 100)
    @ApiModelProperty(value = "更新人")
    private String updateUserName;

    @Column(name = "UPDATETIME")
    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @Column(name = "STATE", length = 6)
    @ApiModelProperty(value = "生命周期状态（如：草稿/生效/失效）")
    private String state;

    @Column(name = "VERNO", length = 10)
    @ApiModelProperty(value = "版本号")
    private String verNo;

    @Column(name = "CERTGETDATE")
    @ApiModelProperty(value = "证书获取日期")
    private Timestamp certGetDate;
}